package com.iretailer.report.web.business;

import com.iretailer.report.base.BaseAction;
import com.iretailer.report.dto.PageResult;
import com.iretailer.report.dto.ReRenewalRecord;
import com.iretailer.report.util.RMap;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Auther Bennie
 * @Date 2020/6/3 13:57
 * @Description
 */
@RestController
@RequestMapping("/business")
public class RenewalRecordController extends BaseAction {



    @RequestMapping("/renewalrecordPage.action")
    public Map<String, Object> renewalRecordPage(
            @RequestBody ReRenewalRecord reRenewalRecord
    ) {
        PageResult<?> result = renewalRecordService.renewalRecordPage(reRenewalRecord);
        return RMap.ok(result);
    }

}
